<?php
/**
 * 后台文章管理
 */
namespace Home\Model;
use Home\Common\Model\CommonModel;
class BindWechatModel extends CommonModel
{

    //定义主表名称
    protected $tableName = 'wechat_bindwechat';

    /*
     * 获取公众号信息
     */
    public function getBindWechat(){
        $wechat=S('wechat');
        $wechat = null;
        if(!$wechat){
            $wechat = $this->find();
            S('wechat',$wechat,86400);//存一天
        }
        return $wechat;
    }

}